package com.bocai.freeman.view.fragments;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;

import com.bocai.freeman.R;
import com.bocai.freeman.base.BaseFragment;
import com.bocai.freeman.view.adapter.CharmAdapter;

import butterknife.Bind;
import butterknife.ButterKnife;

public class RegalFragment extends BaseFragment {
    @Bind(R.id.gv_charm)
    GridView gvCharm;
    private View view;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_charm, null);
        initView();
        return view;

    }
    private void initView() {
        ButterKnife.bind(this, view);
        gvCharm.setAdapter(new CharmAdapter(getActivity(),3));
    }
    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
